package com.dkm.ec.so.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.so.domain.ShipBillItem;
import com.dkm.ec.so.repository.ShipBillItemRepository;
import com.dkm.ec.so.persistence.dao.ShipBillItemQueryDao;
import com.dkm.ec.so.persistence.entity.ShipBillItemPo;

/**
 * 对象功能:发货单项目 Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-24 16:43:46
 */
@Repository
public class ShipBillItemRepositoryImpl extends AbstractRepository<String, ShipBillItemPo,ShipBillItem> implements ShipBillItemRepository{
	  
	@Resource
	private  ShipBillItemQueryDao shipBillItemQueryDao;

	public ShipBillItem newInstance() {
		ShipBillItemPo po = new ShipBillItemPo();
		ShipBillItem shipBillItem = SpringHelper.getBean(ShipBillItem.class);
		shipBillItem.setData(po);
		return shipBillItem;
	}

	public ShipBillItem newInstance(ShipBillItemPo po) {
		ShipBillItem shipBillItem = SpringHelper.getBean(ShipBillItem.class);
		shipBillItem.setData(po);
		return shipBillItem;
	} 
	
	@Override
	protected IQueryDao<String, ShipBillItemPo> getQueryDao() {
		return shipBillItemQueryDao;
	}
	
}
